{layout name="win" /}
<div class="titlebar"><i class="iconfont icon-line-chart_icon"></i>流水统计</div>
<div class="cards">
    <div class="card yellow">
        <div class="fn-left"><i class="iconfont icon-renminbi1688"></i></div>
        <div class="fn-right fn-tar"><div class="num">{$wechat_pay|money}</div><div class="text">微信付(订单)</div></div>
    </div>
    <div class="card yellow">
        <div class="fn-left"><i class="iconfont icon-renminbi1688"></i></div>
        <div class="fn-right fn-tar"><div class="num">{$balance_pay|money}</div><div class="text">积分付(订单)</div></div>
    </div>
    <div class="card violet">
        <div class="fn-left"><i class="iconfont icon-renminbi1688"></i></div>
        <div class="fn-right fn-tar"><div class="num">{$receipts/100|money}</div><div class="text">入账流水</div></div>
    </div>
    <div class="card yellow">
        <div class="fn-left"><i class="iconfont icon-renminbi1688"></i></div>
        <div class="fn-right fn-tar"><div class="num">{$expenses/100|money}</div><div class="text">出账流水</div></div>
    </div>
    <div class="card yellow">
        <div class="fn-left"><i class="iconfont icon-renminbi1688"></i></div>
        <div class="fn-right fn-tar"><div class="num">{$balance/100|money}</div><div class="text">流水逆差<span class="gray fn-f12">入账-出账</span></div></div>
    </div>
</div>
<div class="titlebar">
    <div class="fn-left"><i class="iconfont icon-text_icon"></i>财务流水</div>    
    <div class="fn-right">
        <form id="form" action="{:url('bank/logs')}" method="get">
            <input type="hidden" name="input" value="{$input}">
            <input placeholder="开始日期" class="input ui-time" type="text" readonly="readonly" name="starttime" value="{if $starttime}{$starttime|date="Y-m-d H:i:s"}{/if}" /> 至 
            <input placeholder="结束日期" class="input ui-time" type="text" readonly="readonly" name="endtime" value="{if $endtime}{$endtime|date="Y-m-d H:i:s"}{/if}" />
            <input type="submit" value="搜索" class="button button-blue" />
        </form>
    </div>
</div>
<table class="table">
    <thead>
        <tr>
            <th class="w80 fn-tac">#</th>
            <th class="w60 fn-tac"></th>
            <th class="w200">微信昵称</th>
            <th class="w160">更新时间</th>
            <th class="w100"><i class="iconfont icon-renminbi1688"></i>金额</th>
            <th class="w60 fn-tac"></th>
            <th class="w200">来自微信</th>
            <th>来自单号</th>
            <th>内容</th> 
        </tr>
    </thead>
    <tbody>
        {foreach $list as $vo}
        <tr>
            <td class="fn-tac li">{$vo['id']}</td>
            <td class="fn-tac"><img src="{$vo.user.face}" class="w40" /></td>
            <td><a href="javascript:;" url="{:url('user/pyramid',['id' => $vo.user.id])}" class="review">{$vo.user.nickname}</a></td>
            <td>{$vo->update_time|date='Y-m-d H:i'}</td>
            <td><i class="iconfont icon-renminbi1688"></i><span class="{if $vo.money/100 > 0}red{else}green{/if}">{$vo.money/100|money}</span></td>
            <td class="fn-tac"><img src="{$vo.formuser.face}" class="w40" /></td>
            <td><a href="javascript:;" url="{:url('user/pyramid',['id' => $vo.formuser.id])}" class="review">{$vo.formuser.nickname}</a></td>
            <td>{$vo.order_no}</td>
            <td>{$vo.message}</td>
        </tr>
        {/foreach}
    </tbody>
</table>
<div class="page">{$list|raw}</div>
<script type="text/javascript">
Do('base', 'layer','form','date', function () {
    $('#form').isForm({types:1});
    $('.review').click(function () {
        var url = $(this).attr('url');
        $(this).popup(url);
    })
})
</script>